package lab04.Test02;

/**
 * Created by lady on 2017/12/20.
 */
public class SecondThread implements Runnable  {

    //第二个线程每隔2秒向控制台输出“1234567890”。
    @Override
    public void run() {
        while(true) {
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("1234567890");
        }
    }
    }

